/*
 * @Descripttion: 参数转换
 * @version: V1.0
 * @Author: GaoWei
 * @Date: 2021-07-22 09:45:43
 * @LastEditors: GW
 * @LastEditTime: 2021-12-06 15:59:45
 */

/**
 * 转化来源单据中文
 */
function conversionOrderName (code) {
    let text = '';
    switch (code) {
        case 'PurchaseRequisition':
            text = '请购单';
            break;
        case 'PurchaseOrder':
            text = '采购订单';
            break;
        case 'PuArrival':
            text = '到货单';
            break;
        case 'SaleDelivery':
            text = '销售发货单';
            break;
        case 'PurchaseInvoice':
            text = '采购发票';
            break;
        case 'SaleQuotation':
            text = '报价单';
            break;
        case 'SaleOrder':
            text = '销售订单';
            break;
        case 'SaleInvoice':
            text = '销售发票';
            break;
        case 'PurchaseReceiveVoucher':
            text = '采购入库单';
            break;
        case 'ProductReceiveVoucher':
            text = '产成品入库单';
            break;
        case 'DelegateReceiveVoucher':
            text = '委外入库';
            break;
        case 'OtherReceiveVoucher':
            text = '其他入库单';
            break;
        case 'SaleDispatchVoucher':
            text = '销售出库单';
            break;
        case 'MaterialDispatchVoucher':
            text = '材料出库单';
            break;
        case 'DelegateProductionWork':
            text = '委外加工单';
            break;
        
        case 'DelegateArrival':
            text = '委外到货单';
            break;
        case 'DelegateDispatchVoucher':
            text = '委外出库单';
            break;
        case 'DelegateRRS':
            text = '委外领料单';
            break;
        case 'DelegateInvoice':
            text = '委外发票';
            break;
        case 'InventoryAllocation':
            text = '库存调拨';
            break;
        case 'InventoryCheck':
            text = '盘点业务';
            break;
        case 'QualityCheck':
            text = '质量管理';
            break;
        case 'OtherDispatchVoucher':
            text = '其他出库单';
            break;
        case 'RRS':
            text = '领料单';
            break;
        case 'ProductionWork':
            text = '生产订单';
            break;
        case 'ProductionOrder':
            text = '计划订单';
            break;
        case 'ProductionFinish':
            text = '生产完工单';
            break;
        case 'ProductionPlan':
            text = '生产计划';
            break;
        case 'MrpRecord':
            text = 'MRP运算结果';
            break;
        case 'AreaCalculation':
            text = '面积计算表';
            break;
        default:
            break;
    }
    return text;
}

export {
    conversionOrderName
}
